//
//  BandingBtn.m
//  workApp
//
//  Created by 林 on 2019/1/11.
//  Copyright © 2019 林. All rights reserved.
//

#import "BandingBtn.h"

@implementation BandingBtn
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    self.layer.cornerRadius = 22;
    self.layer.masksToBounds = true;
    self.backgroundColor = [UIColor greenColor];
    if (self) {
        self.nameLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, frame.size.width-40, frame.size.height)];
        self.nameLab.textAlignment = NSTextAlignmentRight;
        self.nameLab.font = [UIFont systemFontOfSize:15];
        self.nameLab.backgroundColor = [UIColor clearColor];
        [self addSubview:self.nameLab];
        
        self.imageV = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width-35, 10, 25, 25)];
   
        self.imageV.layer.cornerRadius = 12;
        self.imageV.layer.masksToBounds = true;
        [self addSubview:self.imageV];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
